Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix creating new option on key down on unexpected keys #2554

Closed
wants to merge 1 commit into from
Closed

Fix creating new option on key down on unexpected keys #2554

wants to merge 1 commit into from

Conversation

benjamin-pirotte
Copy link

related to #345 & #1934

This PR:

  • Pass full event to shouldKeyDownEventCreateNewOption for more customization.
  • Use event.key instead of event.keyCode in default shouldKeyDownEventCreateNewOption props, to avoid unexpected behaviour on key down.
  • Update README.md to reflect new shouldKeyDownEventCreateNewOption interface.
  • Update Creatable tests

@coveralls
Copy link

Coverage Status

Coverage remained the same at 94.973% when pulling 76c7efc on benjamin-pirotte:unexpected-key-create-new-option into 404bf14 on JedWatson:master.

@jossmac jossmac added the v1 label Jul 4, 2018
@flexdinesh
Copy link
Collaborator

flexdinesh commented Mar 22, 2020

Hey @benjamin-pirotte v1 of react-select is no longer maintained.

Thanks for taking your time out to create this PR but since this is relevant to v1, we recommend maintaining your own v1 fork if you want to address v1 issues. We understand this might be inconvenient but in the best interest of supporting the broader community we have to direct our limited efforts to maintain the latest versions.

We highly recommend upgrading from v1 to v2.

I'm closing this issue/PR now. Feel free add your thoughts in #3981 and reference this issue/PR if needed.

@flexdinesh flexdinesh closed this Mar 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants